package com.dmpp.mes.service.impl;


import com.dmpp.mes.bean.RespEnum;
import com.dmpp.mes.bean.ResponseData;
import com.dmpp.mes.dao.CategoryMapper;
import com.dmpp.mes.dao.SpringMapper;
import com.dmpp.mes.parameterInfo.Category;
import com.dmpp.mes.service.CategoryService;
import com.dmpp.mes.service.SpringService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service(value = "SpringService")

public class SpringServiceImpl implements SpringService {

    @Autowired
    private SpringMapper mapper;

    @Override
    public ResponseData findAll() {
        ResponseData responseData = new ResponseData();
        PageInfo pageInfo = new PageInfo<>(mapper.findAll());
        responseData.setData(pageInfo);
        return responseData;
    }
}
